﻿
namespace SCSoft.WinForms.Tests
{
    public class ScreenElementStateFixture
    {
        private readonly ITestDriver _driver;
        private string _label;

        public ScreenElementStateFixture(ITestDriver driver)
        {
            _driver = driver;
        }


        public string ElementName
        {
            set { _label = value; }
        }

        public bool Enabled()
        {
            return _driver.IsEnabled(_label);
        }

        public bool Visible()
        {
            return _driver.IsVisible(_label);
        }
    }
}